/*
1:安装  yarn add pinia
2:在main.ts挂载
    import {createPinia} from 'pinia'
    createApp(App).use(createPinia()).mount('#app')
3:src/store/modules/模块名.ts
  import {defineStore} from 'pinia'
  export default defineStore('模块名',{
    state(){
        return {
            username:'zs'
        }
    },
    action....
  })
4:src/store/index.ts
   import use模块名 from './modules/模块名.ts'
   export default function(){
     return {
         模块名:use模块名()
     }

   }
5:使用
  import useStore from '@/store'
  import {storeToRefs} from 'pinia'
  const {模块名}=useStore()
  const {username}=storeToRefs(模块名)

*/

import useCategory from './modules/category'
import useHome from './modules/home'
import useGoods from './modules/goods'
import useUser from './modules/user'
export default function () {
  return {
    category: useCategory(),
    home: useHome(),
    goods: useGoods(),
    user: useUser()
  }
}
